package com.clwl.supervise.superviseapp.mapper.supervise;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.clwl.supervise.superviseapp.entity.base.CommonSearchEntity;
import com.clwl.supervise.superviseapp.entity.supervise.JgRandomCompany;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface JgRandomCompanyMapper extends BaseMapper<JgRandomCompany> {

    IPage<Map<String, Object>> selectDoubleRandomCheckPage(IPage<Map<String, Object>> page, @Param("params") CommonSearchEntity commonSearchEntity);


    /**
     * 获取已检查历史列表
     * @param iPage
     * @return
     */
    IPage<Map<String, Object>> selectInspectionResultPage(IPage<Map<String, Object>> iPage, @Param("params") CommonSearchEntity commonSearchEntity );

    JgRandomCompany selectByYearAndCompanyId(@Param("year") String yyyy,@Param("companyId") Long companyId);
}